/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-08-12 09:18:04
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-08-19 11:52:32
 * @FilePath: \crm_customer\src\components\WorkOrder\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React,{useEffect} from 'react'
// import {BrowserRouter as Router} from 'react-router-dom'
import WorkHead from './WorkHead';
import { useNavigate } from 'react-router-dom';

import { Provider } from 'mobx-react';
import store from '../../store';

export default function index() {
  // eslint-disable-next-line react-hooks/rules-of-hooks
  let Navigate=useNavigate()

  // eslint-disable-next-line react-hooks/rules-of-hooks
  useEffect(()=>{
    Navigate('/home/worklist')
    // eslint-disable-next-line
},[])
  return (
   <Provider {...store}>
 
   <WorkHead/>
   
   </Provider>
  )
}
